
<layout name="layout" />
<style>
    #lg_main{
        width: 100%;
        margin: 20px auto 100px;
        padding: 60px 15px;
    }
</style>

<div class="col-xs-11 col-sm-11 col-md-11 col-lg-11" id="lg_main">
    <div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>
        <form>
            <div class='form-group'>
                <label>账户</label> 
                <input class='form-control' type='text' name='lg_nickname' placeholder="昵称/登陆邮箱" />
            </div>
            <div class='form-group'>
                <label>密码</label> 
                <input class='form-control' type='password' name='lg_password' placeholder="密码" />
            </div>

            <div class="checkbox">
                <label>
                    <input id='lg_rememberMe' name='checkbox' type="checkbox" value='rememberMe'/> 记住我一周
                </label>
                <!--
                    <a href=''>忘记密码?</a>
                -->
                <a href='{$Think.config.REGIST}' style='float:right'>还没有账号?马上注册</a>
            </div>

        </form>

        <!--ajax不能在form里面-->
        <button name="lg_submit" class="btn btn-primary btn-block ">登陆</button>
    </div>
    <div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>
        <include file="App/public/View/Default/public/AD.html" />
    </div>
</div>

<script>
    $('[name=lg_password]').keydown(function() {
        if (event.keyCode == 13) {
            lg_login();
        }
    }
    );

    $('[name=lg_nickname]').keydown(function() {
        if (event.keyCode == 13) {
            lg_login();
        }
    }
    );

    $('[name=lg_submit]').click(lg_login);
</script>